package cn.tedu._08article.pojo.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserArticleParam {
    @NotNull(message = "文章标题不能为空")
    private String title;
    @Size(min=10,max = 500,message = "文章内容长度必须在10-500之间")
    private String content;
}
